projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b43285
)
Small cornercase fix to python-info-current-defun.
author
Fabián Ezequiel Gallina
<fgallina@cuca>
Thu, 17 May 2012 03:03:12 +0000
(
00:03
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:03:12 +0000
(
00:03
-0300)
Returned the bad defun name when point was at the beginning of defun.
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 321bc5eb94aac5e3b74d2a2507bf37f80026e41a..b11741d4a68219f7f2cd34de1ea3fb6902314459 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-1942,8
+1942,8
@@
not inside a defun."
(save-restriction
(widen)
(save-excursion
- (forward-comment -1)
(goto-char (line-end-position))
+ (forward-comment -1)
(while (and (not (equal 0 (current-indentation)))
(not (python-beginning-of-defun-function 1 t)))
(when (or (not min-indent)